/**
 * 登录页面样式
 * 提供现代化的登录界面设计
 */

.container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
}

.formContainer {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

/* 头部区域 */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.title {
  color: white;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 0;
}

/* 登录方式切换 */
.loginTypeTabs {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.tab {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 人脸登录样式 */
.faceLoginContainer {
  padding: 20px 0;
}

.faceLoginContent {
  text-align: center;
}

.faceLoginIcon {
  font-size: 64px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faceLoginContent h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
}

.faceLoginContent p {
  color: #666;
  font-size: 14px;
  margin: 0 0 24px 0;
}

.faceLoginButtons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.faceLoginButton {
  height: 48px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
}

.faceRegisterButton {
  height: 48px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  background: #f5f5f5;
  color: #333;
  border: 1px solid #d9d9d9;
}

.faceRegisterButton:hover {
  background: #e6f7ff;
  border-color: var(--adm-color-primary);
  color: var(--adm-color-primary);
}

.faceLoginTips {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  text-align: left;
}

.faceLoginTips h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.faceLoginTips ul {
  margin: 0;
  padding-left: 20px;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
}

.faceLoginTips li {
  margin-bottom: 4px;
}

/* 表单样式 */
.form {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 验证码输入框 */
.smsCodeInput {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.smsCodeInput .adm-input {
  flex: 1;
}

.smsButton {
  min-width: 100px;
  height: 40px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
}

/* 表单选项 */
.formOptions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 24px 0;
}

.forgotPassword {
  background: none;
  border: none;
  color: var(--adm-color-primary);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.forgotPassword:hover {
  text-decoration: underline;
}

/* 登录按钮 */
.loginButton {
  height: 48px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
}

/* 其他登录方式 */
.otherLogin {
  margin: 24px 0;
  text-align: center;
}

.otherLogin .adm-divider {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.otherLogin .adm-divider::before,
.otherLogin .adm-divider::after {
  border-color: rgba(255, 255, 255, 0.3);
}

/* 用户协议 */
.agreement {
  text-align: center;
  margin-top: 20px;
}

.agreement p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin: 0;
  line-height: 1.5;
}

.link {
  background: none;
  border: none;
  color: white;
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  margin: 0 2px;
}

.link:hover {
  opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .formContainer {
    padding: 16px;
  }
  
  .form {
    padding: 20px;
  }
  
  .title {
    font-size: 20px;
  }
  
  .logo {
    width: 60px;
    height: 60px;
  }
  
  .faceLoginIcon {
    font-size: 48px;
  }
  
  .faceLoginContent h3 {
    font-size: 18px;
  }
  
  .faceLoginButtons {
    gap: 8px;
  }
  
  .faceLoginButton,
  .faceRegisterButton {
    height: 44px;
    font-size: 15px;
  }
  
  .faceLoginTips {
    padding: 12px;
  }
  
  .faceLoginTips ul {
    font-size: 12px;
  }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  
  .form .adm-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
  }
  
  .form .adm-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.formContainer {
  animation: fadeInUp 0.6s ease-out;
}

/* 加载状态 */
.loginButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 输入框焦点状态 */
.form .adm-input:focus {
  border-color: var(--adm-color-primary);
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* 错误状态 */
.form .adm-input.adm-input-error {
  border-color: var(--adm-color-danger);
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
}
